package com.lemon.reggie.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DishDTO implements Serializable {

    private static final long serialVersionUID = 5619400587080664470L;

    @ApiModelProperty(value = "菜品份数")
    @NotNull(message = "菜品价格不能为空！")
    private Integer copies;

    @ApiModelProperty(value = "菜品名称")
    @NotBlank(message = "菜品名称不能为空！")
    private String name;

    @ApiModelProperty(value = "菜品id")
    @NotBlank(message = "菜品id不能为空！")
    private String dishId;

    @ApiModelProperty(value = "菜品价格")
    @NotNull(message = "菜品价格不能为空！")
    private BigDecimal price;

}
